<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>单向绑定循环2</title>
		<script type="text/javascript" src="js/knockout-3.4.0.js" ></script>
	</head>
	<body>
		<h1>注释风格的循环控制语句</h1>
		<div id="_bindDemo">
			框架数量<span data-bind="text: count"></span>
			<ul>
				<!-- ko foreach: items -->
				<li data-bind="text: framework"></li>
				<!-- /ko -->
			</ul>
		</div>
	</body>
	<script type="text/jscript">
		var data = {
			count: 2,
			items: [
				{
					framework: 'Knockout'
				},
				{
					framework: 'JQuery'
				}
			]
		};
		ko.applyBindings(data, document.getElementById('_bindDemo'));
	</script>
</html>
